package cn.tedu.pojo;

import org.springframework.stereotype.Component;

@Component
public class Phone {
    private String name;
    private String color;
    private Double price;

    @Override
    public String toString() {
        return "Phone{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                '}';
    }

    public String getName() { return name; }

    public void setName(String name) { this.name = name; }

    public String getColor() { return color; }

    public void setColor(String color) { this.color = color; }

    public Double getPrice() { return price; }

    public void setPrice(Double price) { this.price = price; }
}
